GetMail-0.31beta

ARexx SMTP Daemon for AmiTCP

By: Philip Stokes <phil@stokes.demon.co.uk>

GetMail version 0.31 beta

Now with console notification, thanks to Paul Copsey :)

This is a beta version of my ARexx SMTP Daemon for AmiTCP. It is called by inetd whenever it receives an incoming call to port 25.

GetMail handles all of the dialogue between your machine and the server. Incoming mail is passed to a temporary file in T: which is then passed to rmail for local delivery. GetMail does not acknowledge receipt of the mail item to the server until rmail has successfully delivered the mail to the destination mailbox. Additionally, the temporary file will not be deleted unless rmail reports a successful local delivery of the file.

All mail transactions are logged to a file. The filename is determined by GetMail but the path to the logfile can be set in the config file UULib:SMTP.conf. The default is T:

Basic rejection of unwanted mail is enabled and works on the sender's address. No wildcards are as yet allowed. There must be an entry in UULib:SMTP.conf for each person whose mail you wish to reject, consisting of their email address enclosed in brackets '<' and '>'.

Mail from anyone included in that list is bounced back to them by the server for the reason 'User not known' and never actually downloaded to your machine.

The config file UULib:SMTP.conf MUST also contain entries for each user mailbox and alias that exists on your machine. If mail is sent to a user or mailbox whose name is not in that list then again it WILL be bounced to the sender without ever being downloaded to your machine.

There are a number of default entries in the file, e.g. postmaster and mailer-daemon which must not be removed. All entries are case insensitive, therefore an entry for 'phil' will match mail addressed to phil, Phil, PHIL and pHiL etc.

Getmail should handle mail with long header lines although as I haven't received any this is so far untested.

Currently, there is no notification of incoming mail, other than a connection to port 25 being reported in the AmiTCP log window, but that is on the "to do" list.

To install Getmail you need to do the following.

  1. Copy GetMail to AmiTCP:bin and ensure that the S protection bit is set.
  2. Place the config file SMTP.conf in your UULib: directory and adjust its contents to your preferences. You MUST enter the hostname of your machine in the config file.
  3. Change the entry for 'smtp' in AmiTCP:db/inetd.conf to read:
    smtp      stream tcp dos bin - rx AmiTCP:bin/getmail
  4. you may wish to comment out your old entry by placing a '#' at the start of the line (rather than deleting it) in case you wish to revert to it.
  5. For console notification, GetMail makes use of the included script "Warn" by Paul Copsey <paul@hectortd.demon.co.uk>. This should be copied somewhere in your path, e.g. AmiTCP:bin, again ensuring that the S bit is set. The notification window size is configurable from within the script if you wish to adjust it.

In addition, GetMail requires the following:

If you do find any bugs or problems, please send me a copy of the relevant logfile. If you do lose mail, it would also be of help if you could find out from the sender whether the mail was bounced. If so, please also try and obtain from them a copy of the bounce report, as it will contain useful information that could help me to track down the problem.

Please mail any bug reports, comments etc. to Philip Stokes

Thanks,

Phil


Home Return to Wirenet Home Page

Mailto Wirenet - The UK's first Amiga-only internet access provider


This page was last updated on Saturday 20 July 1996 at 12:23 AM.